package cn.qicaiwang.open.admin.controller.qxyApi;

import cn.qicaiwang.open.admin.server.AdminQxyApiService;
import cn.qicaiwang.open.app.entity.Enterprise;
import cn.qicaiwang.open.common.response.ResponseResult;
import cn.qicaiwang.open.qxyApi.entity.ApiInvokeLog;
import cn.qicaiwang.open.qxyApi.mapper.ApiInvokeLogMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



@RestController
@RequestMapping("/AdminQxyApi")
public class AdminQxyApiController {
    @Autowired
   private AdminQxyApiService adminQxyApiService;


    /**
     * 取企享云API调用记录
     *
     * @param page
     * @param
     * @return
     */
    @GetMapping(value = "/page")
    public ResponseResult operateLoggerPage(Page page) {
        Page<ApiInvokeLog> pageList = adminQxyApiService.pageList(page);
        return ResponseResult.ok(pageList);
    }
}
